package com.cloud.business.dao.base;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;


/**
 * 自定义通用mapper
 * Copyright: Copyright (C) 2020 DLANGEL, Inc. All rights reserved.
 * Company: 大连安琪科技有限公司
 *
 * @author dh
 * @since 2020/3/26 11:20
 */
public interface MyBaseMapper<T> extends BaseMapper<T> {


    /**
     * 批量插入 只在mysql中做过测试
     *
     * @param list
     * @return
     */
    int insertBatchSomeColumn(List<T> list);


    //    Integer deleteAll();
    //
    //    int myInsertAll(T entity);

    //    int deleteByIdWithFill(T entity);
    //
    //    int alwaysUpdateSomeColumnById(@Param(Constants.ENTITY) T entity);

}
